﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ControlAcceso.Dominio;

namespace ControlAcceso.Interfaz.Administrar_de_Dispositivos
{
    public partial class RegistrarConversorSerial : Form
    {
        public RegistrarConversorSerial()
        {
            InitializeComponent();
        }

        private void RegistrarConversorSerial_Load(object sender, EventArgs e)
        {

        }

        private void RegistrarConversorSerial_Load_1(object sender, EventArgs e)
        {

        }

        private void btnGuardar_Click(object sender, EventArgs e)
        {
            try
            {
                //ConversorSerial conversorSerial = new ConversorSerial(txtNombre.Text, Convert.ToInt32(txtDireccionIp.Text), Convert.ToInt32(txtPuerto.Text),cb_TipoConversorSerial.SelectedValue);
                //IClienteDao dao = ClienteMock.getInstance();
                //dao.guardarOModificarCliente(cliente);
                //this.Close();
            }
            catch (Exception c)
            {
                MessageBox.Show(c.Message, "Atención", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }

        private void btnSalir_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }
    }
}
